<?php
namespace Admin\Controller;
use Think\Controller;
class BaseController extends Controller{
	protected $auth;
	function _initialize(){
		if(!isset($_SESSION['uid'])){
 			$this->redirect('Admin/Login/login');
 			exit();
 		}else{//查询权限
 			$auth = new \Think\Auth();
 			$this->auth=$auth;
 		};
	}
}